package com.hongdee.scm.common.service;

/**
 * Created by Mr. Xu on 2017/6/26.
 */
public interface ICommonService {
    /**
     * 根据日期获取流水号，若没有新生成流水号0001
     *
     * @throws Exception
     */
    public String serialNumber(String type) throws Exception;

    public Boolean appendWhereIfNeed(StringBuffer sql, Boolean hasWhere);

    //更新流水号
    public void updateSerialNumber (String currentSerial) throws Exception;

    //获取当前时间，格式为“20170604”
    public String currentTime() throws Exception;
    /**
     * 验证参数格式 符合返回true，反之false
     * @param format 标准格式
     * @param date 待验证日期字符
     * @return
     * @throws Exception
     * made by Miss_Jin
     */
    public boolean verificationDate(String format,String date) throws Exception;
}
